const actions = {
	setdataAsync(context, value) {
		// 键值
		const key = value.key;
		// 包
		const info = value.info;

		if (['userinfo'].includes(key)) {
			context.commit('setdata', info);
			//本地缓存关联vuex
			if (info) {
				uni.setStorageSync(key, info);
			} else {
				uni.removeStorageSync(key);
			}
		}
	},
}
export default actions